package com.jajahome.model;

import java.io.Serializable;
import java.util.List;

/**
 * Created by tuxuesong on 2018/5/14.
 */

public class CrowModel implements Serializable {


    /**
     * data : {"pagination":{"total":"1","count":1,"limit":12,"offset":1},"crowdList":[{"id":"1","item_id":"2278","name":"美式茶几","image":{"small":"http://www.jajahome.com/gjj/backend/web/images/d02/881/d02/1c8/a9267ad6c9268be6c27f_2.jpg","thumb":"http://www.jajahome.com/gjj/backend/web/images/d02/881/d02/1c8/a9267ad6c9268be6c27f_1.jpg","url":"http://www.jajahome.com/gjj/backend/web/images/d02/881/d02/1c8/a9267ad6c9268be6c27f.jpg"},"state":"0","desc":"121243242sdfasf4343","memo":"32323234rfsaf","start_time":"0","end_time":"0","amRaised":"0.00","tarAmount":"0.00","postage":"0"}]}
     * cmd : crowd_funding_list
     * status : 0
     */

    private DataEntity data;
    private String cmd;
    private int status;

    public void setData(DataEntity data) {
        this.data = data;
    }

    public void setCmd(String cmd) {
        this.cmd = cmd;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public DataEntity getData() {
        return data;
    }

    public String getCmd() {
        return cmd;
    }

    public int getStatus() {
        return status;
    }

    public static class DataEntity implements Serializable {
        /**
         * pagination : {"total":"1","count":1,"limit":12,"offset":1}
         * crowdList : [{"id":"1","item_id":"2278","name":"美式茶几","image":{"small":"http://www.jajahome.com/gjj/backend/web/images/d02/881/d02/1c8/a9267ad6c9268be6c27f_2.jpg","thumb":"http://www.jajahome.com/gjj/backend/web/images/d02/881/d02/1c8/a9267ad6c9268be6c27f_1.jpg","url":"http://www.jajahome.com/gjj/backend/web/images/d02/881/d02/1c8/a9267ad6c9268be6c27f.jpg"},"state":"0","desc":"121243242sdfasf4343","memo":"32323234rfsaf","start_time":"0","end_time":"0","amRaised":"0.00","tarAmount":"0.00","postage":"0"}]
         */

        private PaginationEntity pagination;
        private List<CrowdListEntity> crowdList;

        public void setPagination(PaginationEntity pagination) {
            this.pagination = pagination;
        }

        public void setCrowdList(List<CrowdListEntity> crowdList) {
            this.crowdList = crowdList;
        }

        public PaginationEntity getPagination() {
            return pagination;
        }

        public List<CrowdListEntity> getCrowdList() {
            return crowdList;
        }

        public static class PaginationEntity {
            /**
             * total : 1
             * count : 1
             * limit : 12
             * offset : 1
             */

            private String total;
            private int count;
            private int limit;
            private int offset;

            public void setTotal(String total) {
                this.total = total;
            }

            public void setCount(int count) {
                this.count = count;
            }

            public void setLimit(int limit) {
                this.limit = limit;
            }

            public void setOffset(int offset) {
                this.offset = offset;
            }

            public String getTotal() {
                return total;
            }

            public int getCount() {
                return count;
            }

            public int getLimit() {
                return limit;
            }

            public int getOffset() {
                return offset;
            }
        }

        public static class CrowdListEntity implements Serializable {
            /**
             * id : 1
             * item_id : 2278
             * name : 美式茶几
             * image : {"small":"http://www.jajahome.com/gjj/backend/web/images/d02/881/d02/1c8/a9267ad6c9268be6c27f_2.jpg","thumb":"http://www.jajahome.com/gjj/backend/web/images/d02/881/d02/1c8/a9267ad6c9268be6c27f_1.jpg","url":"http://www.jajahome.com/gjj/backend/web/images/d02/881/d02/1c8/a9267ad6c9268be6c27f.jpg"}
             * state : 0
             * desc : 121243242sdfasf4343
             * memo : 32323234rfsaf
             * start_time : 0
             * end_time : 0
             * amRaised : 0.00
             * tarAmount : 0.00
             * postage : 0
             */

            private String id;
            private String item_id;
            private String name;
            private ImageEntity image;
            private String state;
            private String desc;
            private String memo;
            private String start_time;
            private String end_time;
            private String amRaised;
            private String tarAmount;
            private String postage;
            private Long countdown;
            private String buy_count;

            public Long getCountdown() {
                return countdown;
            }

            public void setCountdown(Long countdown) {
                this.countdown = countdown;
            }

            public String getBuy_count() {
                return buy_count;
            }

            public void setBuy_count(String buy_count) {
                this.buy_count = buy_count;
            }

            public void setId(String id) {
                this.id = id;
            }

            public void setItem_id(String item_id) {
                this.item_id = item_id;
            }

            public void setName(String name) {
                this.name = name;
            }

            public void setImage(ImageEntity image) {
                this.image = image;
            }

            public void setState(String state) {
                this.state = state;
            }

            public void setDesc(String desc) {
                this.desc = desc;
            }

            public void setMemo(String memo) {
                this.memo = memo;
            }

            public void setStart_time(String start_time) {
                this.start_time = start_time;
            }

            public void setEnd_time(String end_time) {
                this.end_time = end_time;
            }

            public void setAmRaised(String amRaised) {
                this.amRaised = amRaised;
            }

            public void setTarAmount(String tarAmount) {
                this.tarAmount = tarAmount;
            }

            public void setPostage(String postage) {
                this.postage = postage;
            }

            public String getId() {
                return id;
            }

            public String getItem_id() {
                return item_id;
            }

            public String getName() {
                return name;
            }

            public ImageEntity getImage() {
                return image;
            }

            public String getState() {
                return state;
            }

            public String getDesc() {
                return desc;
            }

            public String getMemo() {
                return memo;
            }

            public String getStart_time() {
                return start_time;
            }

            public String getEnd_time() {
                return end_time;
            }

            public String getAmRaised() {
                return amRaised;
            }

            public String getTarAmount() {
                return tarAmount;
            }

            public String getPostage() {
                return postage;
            }

            public static class ImageEntity implements Serializable {
                /**
                 * small : http://www.jajahome.com/gjj/backend/web/images/d02/881/d02/1c8/a9267ad6c9268be6c27f_2.jpg
                 * thumb : http://www.jajahome.com/gjj/backend/web/images/d02/881/d02/1c8/a9267ad6c9268be6c27f_1.jpg
                 * url : http://www.jajahome.com/gjj/backend/web/images/d02/881/d02/1c8/a9267ad6c9268be6c27f.jpg
                 */

                private String small;
                private String thumb;
                private String url;

                public void setSmall(String small) {
                    this.small = small;
                }

                public void setThumb(String thumb) {
                    this.thumb = thumb;
                }

                public void setUrl(String url) {
                    this.url = url;
                }

                public String getSmall() {
                    return small;
                }

                public String getThumb() {
                    return thumb;
                }

                public String getUrl() {
                    return url;
                }
            }
        }
    }
}
